<?php

namespace App\Http\Controllers\Api\V1;

use App\Http\Controllers\ApiController;
use App\Services\SeminarTemplates\SeminarService;

/**
 * Class SeminarController
 * @package App\Http\Controllers\Api\V1
 */
class SeminarController extends ApiController
{
    /**
     * @var SeminarService
     */
    protected $seminarService;

    /**
     * SeminarController constructor.
     * @param SeminarService $seminarService
     */
    public function __construct(SeminarService $seminarService)
    {
        $this->seminarService = $seminarService;
    }

    /**
     * @author Jerry
     * @param int $id
     * @param int $isShow
     * @return mixed
     */
    public function index(int $id, int $isShow = 0)
    {
        $data = $this->seminarService->handle($id, $isShow);

        return $this->success($data);
    }
}
